package org.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.example.springboot.common.entity.BaseEntity;

import java.util.Date;

/**
 * 灌溉统计
 *
 * @author Fz
 * @since 1.0.0 2024-02-26
 */
@EqualsAndHashCode(callSuper = false)
@Data
@TableName("irrigation_stat")
public class IrrigationStat extends BaseEntity {

    @Column(name = "start_time", comment = "灌溉启动时间", type = MySqlTypeConstant.DATETIME)
    private Date startTime;

    /**
     * 灌溉结束时间
     */
    @Column(name = "end_time", comment = "灌溉结束时间", type = MySqlTypeConstant.DATETIME)
    private Date endTime;

    /**
     * 灌溉单元
     */
    @Column(name = "unit_code", comment = "灌溉单元")
    private String unitCode;

    @Column(name = "type", comment = "灌溉方式")
    private String type;

    /**
     * 计算耗水量
     */
    @Column(name = "water_consumption", comment = "计算耗水量")
    private String waterConsumption;

    /**
     * 本次灌溉量
     */
    @Column(name = "this_irrigation_amount", comment = "本次灌溉量")
    private String thisIrrigationAmount;

    /**
     * 累计灌溉量
     */
    @Column(name = "cumulative_irrigation_amount", comment = "累计灌溉量")
    private String cumulativeIrrigationAmount;

    /**
     * 报警代码
     */
    @Column(name = "alarm_code", comment = "报警代码")
    private String alarmCode;

}